<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        div{
            width: 200px;
            height: 200px;
            border: 1px solid red;
            /*
              溢出设置
              visible(默认)显示
              hidden隐藏
              scroll滚动显示
            */
            overflow: scroll;
        }
        img{
            width: 100px;
            /*设置行内元素的垂直对齐方式,上中下和基线(默认)*/
            vertical-align: top;
            vertical-align: middle;
            vertical-align: bottom;
        }

    </style>
</head>
<body>
<input type="text"><img src="../d.jpg" alt="">
<div>
    <img src="../d.jpg" alt="">
</div>
</body>
</html>